package di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Main {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("di/diBeans.xml");
//        TextEditer editer1 = (TextEditer) context.getBean("textEditer1");
//        TextEditer editer2 = (TextEditer) context.getBean("textEditer4");
//        editer2.check();

        CollectionTest collectionTest = (CollectionTest) context.getBean("Collection1");
        collectionTest.getList();
        collectionTest.getSet();
        collectionTest.getMap();
        //collectionTest.getProperties();
    }
}
